.class public Lcom/waiqin365/base/login/OpenInterfaceActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const/4 v1, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v2, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v2, :cond_9

    move v0, v1

    :goto_0
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v0, v3, :cond_9

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    instance-of v3, v3, Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v3, :cond_1

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/LoginMainActivity;

    iput-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v0, 0x1

    move v2, v0

    :goto_1
    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-eqz v2, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    move v3, v1

    :goto_2
    if-ge v3, v4, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/base/login/OpenInterfaceActivity;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/base/login/LoginMainActivity;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    :cond_0
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_2

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    if-eqz v2, :cond_8

    sget-boolean v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b:Z

    if-eqz v0, :cond_8

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "alivekaoqin"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "alive_kaoqin"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->d(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_4

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-class v2, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x20000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    :cond_3
    :goto_3
    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->finish()V

    return-void

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getTv_menu0()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->performClick()Z

    goto :goto_3

    :cond_5
    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "alivemessage"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string/jumbo v0, "alive_msg"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getTv_menu1()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->performClick()Z

    goto :goto_3

    :cond_6
    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "alivedaily"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "alive_daily"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getTv_menu2()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->performClick()Z

    goto :goto_3

    :cond_7
    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "alivemore"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "alive_more"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/OpenInterfaceActivity;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getTv_menu0()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->performClick()Z

    goto :goto_3

    :cond_8
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v2, "com.fiberhome.xloc.open.interface"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "alivekaoqin"

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string/jumbo v4, "alivekaoqin"

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "alivemessage"

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string/jumbo v4, "alivemessage"

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "alivedaily"

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string/jumbo v4, "alivedaily"

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "alivemore"

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string/jumbo v4, "alivemore"

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/waiqin365/base/login/OpenInterfaceActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    goto/16 :goto_3

    :cond_9
    move v2, v1

    goto/16 :goto_1
.end method
